package com.wys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wys.pojo.Employee;
import com.wys.result.R;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {
    /**
     *  后台登陆操作
     * @param employee
     * @return
     */
    public R<Employee> login(HttpServletRequest request,Employee employee);

    /**
     *  分页和员工查询功能
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    public Page page(int page,int pageSize,String name);

    /**
     *  更新员工信息操作
     * @param request
     * @param employee
     * @return
     */
    public R<String> update(HttpServletRequest request, Employee employee);

    /**
     * 根据ID查询员工信息
     * @param id
     * @return
     */
    public R<Employee> getEmployeeById(Long id);
}
